<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/admin/header.jsp"></jsp:include>

<div class="main">
	<div class="body container">
		<div class="typecho-page-title">
			<h2>设置外观</h2>
		</div>
		<div class="row typecho-page-main" role="main">
			<div class="col-mb-12">
				<ul class="typecho-option-tabs fix-tabs clearfix">
					<li><a href="${options.siteUrl}/admin/themes">可以使用的外观</a></li>
					<li class="current"><a
						href="${options.siteUrl}/admin/options-themes">设置外观</a></li>
				</ul>
			</div>
			<div class="col-mb-12 col-tb-8 col-tb-offset-2" role="form">
				<form action="${options.siteUrl}/action/admin?do=updateThemeOption"
					method="post" enctype="application/x-www-form-urlencoded">
					<ul class="typecho-option" id="typecho-option-item-logoUrl-0">
						<li><label class="typecho-label" for="logoUrl-0-1">
								站点LOGO地址</label> <input id="logoUrl-0-1" name="logoUrl" type="text"
							class="text" value="">
							<p class="description">在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO</p></li>
					</ul>
					<ul class="typecho-option" id="typecho-option-item-sidebarBlock-1">
						<li><label class="typecho-label"> 侧边栏显示</label> <span
							class="multiline"> <c:if
									test="${themeOption.showRecentPosts==false}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowRecentPosts" id="sidebarBlock-ShowRecentPosts">
								</c:if> <c:if test="${themeOption.showRecentPosts==true}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowRecentPosts" id="sidebarBlock-ShowRecentPosts"
										checked="true">
								</c:if> <label for="sidebarBlock-ShowRecentPosts"> 显示最新文章</label>
						</span> <span class="multiline"> <c:if
									test="${themeOption.showRecentComments==false}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowRecentComments"
										id="sidebarBlock-ShowRecentComments">
								</c:if> <c:if test="${themeOption.showRecentComments==true}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowRecentComments"
										id="sidebarBlock-ShowRecentComments" checked="true">
								</c:if> <label for="sidebarBlock-ShowRecentComments"> 显示最近回复</label>
						</span> <span class="multiline"> <c:if
									test="${themeOption.showCategory==false}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowCategory" id="sidebarBlock-ShowCategory">
								</c:if> <c:if test="${themeOption.showCategory==true}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowCategory" id="sidebarBlock-ShowCategory"
										checked="true">
								</c:if> <label for="sidebarBlock-ShowCategory"> 显示分类</label>
						</span> <span class="multiline"> <c:if
									test="${themeOption.showArchive==false}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowArchive" id="sidebarBlock-ShowArchive">
								</c:if> <c:if test="${themeOption.showArchive==true}">
									<input name="sidebarBlock[]" type="checkbox"
										value="ShowArchive" id="sidebarBlock-ShowArchive"
										checked="true">
								</c:if> <label for="sidebarBlock-ShowArchive"> 显示归档</label>
						</span> <span class="multiline"> <c:if
									test="${themeOption.showOther==false}">
									<input name="sidebarBlock[]" type="checkbox" value="ShowOther"
										id="sidebarBlock-ShowOther">
								</c:if> <c:if test="${themeOption.showOther==true}">
									<input name="sidebarBlock[]" type="checkbox" value="ShowOther"
										id="sidebarBlock-ShowOther" checked="true">
								</c:if> <label for="sidebarBlock-ShowOther"> 显示其它杂项</label>
						</span></li>
					</ul>
					<ul class="typecho-option typecho-option-submit"
						id="typecho-option-item--2">
						<li>
							<button type="submit" class="btn primary">保存设置</button>
						</li>
					</ul>
				</form>
			</div>
		</div>
	</div>
</div>

<jsp:include page="/admin/copyright.jsp"></jsp:include>
<jsp:include page="/admin/common-js.jsp"></jsp:include>
<script src="${options.siteUrl}/admin/js/form.js"></script>
<script>
	$('#frontPage-recent,#frontPage-page,#frontPage-file').change(
			function() {
				var t = $(this);
				if (t.prop('checked')) {
					if ('frontPage-recent' == t.attr('id')) {
						$('.front-archive').addClass('hidden');
					} else {
						$('.front-archive').insertAfter(t.parent())
								.removeClass('hidden');
					}
				}
			});
</script>
<jsp:include page="/admin/footer.jsp"></jsp:include>
